<?php
namespace Seller\Model;
use Think\Model\RelationModel;
class ParameterModel extends RelationModel{
    protected $_link = array(
        'parameter'=>array(
            'mapping_type'      => self::HAS_MANY,
            'class_name'        => 'ParameterVal',
            'foreign_key'   => 'parameter_id',
            'mapping_fields' => 'p_value'
        ),

        'model'=>array(
            'mapping_type'      => self::BELONGS_TO,
            'class_name'        => 'Model',
            'foreign_key'   => 'model_id',
            'mapping_fields' => 'm_name',
            'as_fields' => 'm_name'
        ),

    );





}